/*********************************************************************
	Rhapsody	: 7.6
	Login		: Pawel
	Component	: DefaultComponent
	Configuration 	: DefaultConfig
	Model Element	: DefaultConfig
//!	Generated Date	: Sun, 27, Nov 2011 
	File Path	: DefaultComponent/DefaultConfig/MainDefaultComponent.java
*********************************************************************/


//## auto_generated
import CargoLiftSystem.*;
//## auto_generated
import com.ibm.rational.rhapsody.oxf.*;
//## auto_generated
import com.ibm.rational.rhapsody.animcom.*;

//----------------------------------------------------------------------------
// MainDefaultComponent.java                                                                  
//----------------------------------------------------------------------------


//## ignore 
public class MainDefaultComponent {
    
    //#[ ignore
    // link with events in order to register them in the animation browser
    static {
      // Setting Animation Default Port 
      AnimTcpIpConnection.setDefaultPort(6423);
      // Registering Events 
      try {
        
            Class.forName("CargoLiftSystem.alarmFinished");
            Class.forName("CargoLiftSystem.alarmTriggered");
            Class.forName("CargoLiftSystem.CallLift");
            Class.forName("CargoLiftSystem.callRequest");
            Class.forName("CargoLiftSystem.CloseDoors");
            Class.forName("CargoLiftSystem.doorClosed");
            Class.forName("CargoLiftSystem.doorsBlocked");
            Class.forName("CargoLiftSystem.DoorsClosed");
            Class.forName("CargoLiftSystem.doorsUnlocked");
            Class.forName("CargoLiftSystem.evDoorClosed");
            Class.forName("CargoLiftSystem.evDoorsLocked");
            Class.forName("CargoLiftSystem.evDoorsOpen");
            Class.forName("CargoLiftSystem.evDoorsUnlocked");
            Class.forName("CargoLiftSystem.evLiftOverloaded");
            Class.forName("CargoLiftSystem.evLockDoors");
            Class.forName("CargoLiftSystem.evMove");
            Class.forName("CargoLiftSystem.evObstacleInDoors");
            Class.forName("CargoLiftSystem.evOpenDoors");
            Class.forName("CargoLiftSystem.evStopEngine");
            Class.forName("CargoLiftSystem.evZainicjalizuj");
            Class.forName("CargoLiftSystem.inAlarmMode");
            Class.forName("CargoLiftSystem.LeaveDoorsOpen");
            Class.forName("CargoLiftSystem.LiftArrived");
            Class.forName("CargoLiftSystem.liftIsDown");
            Class.forName("CargoLiftSystem.liftRequest");
            Class.forName("CargoLiftSystem.liftStartedMoving");
            Class.forName("CargoLiftSystem.LocationDetectorSignal");
            Class.forName("CargoLiftSystem.move");
            Class.forName("CargoLiftSystem.OpenDoors");
            Class.forName("CargoLiftSystem.openingDoors");
            Class.forName("CargoLiftSystem.reachedNextFloor");
            Class.forName("CargoLiftSystem.RequestLift");
            Class.forName("CargoLiftSystem.SelectFloor");
            Class.forName("CargoLiftSystem.startedMoving");
            Class.forName("CargoLiftSystem.StopImmediately");
            Class.forName("CargoLiftSystem.stopped");
            Class.forName("CargoLiftSystem.UnlockDoors");
    
        // Registering Static Classes 
        
      }
      catch(Exception e) { 
         System.err.println(e.toString());
         e.printStackTrace(System.err);
      }
    }
    //#]
    
    protected static Lift p_Lift = null;
    
    //## configuration DefaultComponent::DefaultConfig 
    public static void main(String[] args) {
        RiJOXF.Init(null, 0, 0, true, args);
        MainDefaultComponent initializer_DefaultComponent = new MainDefaultComponent();
        p_Lift = new Lift(RiJMainThread.instance());
        p_Lift.startBehavior();
        //#[ configuration DefaultComponent::DefaultConfig 
        //#]
        RiJOXF.Start();
        p_Lift=null;
    }
    
}
/*********************************************************************
	File Path	: DefaultComponent/DefaultConfig/MainDefaultComponent.java
*********************************************************************/

